window.onload = function(){

    $.ajax({
        type:"get",
        url:"http://193.112.55.79:9090/api/getinlanddiscount",
        datatype:"json",
        success:function(res){
            console.log(res);
            template.config("escape", false);
            var htmlStr = template("discountTmp",res);
            $(".discount").html(htmlStr);
        }
    })

}